﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="add_new_Talking_content.aspx.cs" Inherits="SQT.tracnghiem.Ajax.ASP.Lesson.add_new_Talking_content" %>
<%@ Import Namespace="DataAccess" %>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<body>
    <%
        var talk = new TblLessonTalkingContentController().FetchAll().Last();
    %>
    <div id="talk_ct_<%=talk.TalkCtId %>" class="w3-row w3-border w3-margin-bottom">
            <header class="small-talk-name lesson-child-name w3-row w3-padding w3-red w3-large">
                <i class="muiten fa fa-chevron-down w3-right w3-padding-top"></i>
                <input value="<%=talk.TalkCtName %>" type="text" placeholder="Nhập tên mẫu hội thoại" id="txt_talkct_name<%=talk.TalkCtId %>" class=" w3-text-black w3-half" />
            </header>
            <div class="lesson-child-content w3-row w3-padding">
                <div class="w3-row w3-margin-top">
                    <textarea id="talk_CT_Content<%=talk.TalkCtId %>" class="talk_content"><%=talk.TalkContent %></textarea>
                </div>
                <ul class="w3-ul">
                    <li>
                        <div class="w3-row">
                            <a class="themdoithoai-btn w3-text-red" style="cursor: pointer"><i class="fa fa-plus"></i>&nbsp;Đáp án</a><br />
                            <div class="themvidu" style="display: none">
                                <textarea id="talk_CT_Result<%=talk.TalkCtId %>" class="talk_content"><%=talk.TalkSub %></textarea>
                            </div>
                        </div>
                    </li>
                </ul>
                <div class="w3-padding">
                    <label class="w3-large w3-text-red">Luyện tập:</label>
                </div>
                <div class="w3-row">
                    <textarea id="talk_CT_Train<%=talk.TalkCtId %>" class="talk_content"><%=talk.TalkTrainning %></textarea>
                </div>
                <div class="w3-row w3-center w3-padding-top">
                    <div class="w3-hide talk_content_id"><%=talk.TalkCtId %></div>
                    <a onclick="save_talking_ct(<%=talk.TalkCtId %>)" class="w3-btn w3-red"><i class="fa fa-save"></i>&nbsp;Lưu chỉnh sửa</a>&nbsp;<a onclick="del_talking_ct(<%=talk.TalkCtId %>)"" class="w3-btn w3-red"><i class="fa fa-trash"></i>&nbsp;Xóa mẫu đàm thoại</a>
                </div>
            </div>
        </div>
</body>
</html>
